//覆盖一些element-ui样式

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

//暂时性解决dialog 问题 https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

//文章页textarea修改样式
.article-textarea {
  textarea {
    padding-right: 40px;
    resize: none;
    border: none;
    border-radius: 0px;
    border-bottom: 1px solid #bfcbd9;
  }
}

//element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

//dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

//table
.el-table{
  overflow: initial;
  margin-bottom: 15px;

  .el-table__footer-wrapper,
  .el-table__header-wrapper,
  .el-table__body-wrapper{
    overflow: inherit;
  }

  &.ui-border{
    .el-table__body{
      border-top: 1px solid #e9e9e9;
    }
  }

  .el-table__header{
    font-size: 12px;
    width: 100%;
    box-shadow: none;
    text-align: left;
    color: rgba(0, 0, 0, 0.75);
    border-collapse: separate;
    background: rgb(255, 255, 255);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(233, 233, 233);
    border-bottom: 0;
    border-image: initial;
    border-radius: 0.285714rem 0.285714rem 0 0 ;
    border-spacing: 0px;

    th{
      cursor: auto;
      //text-align: inherit;
      text-align: center;
      color: rgba(0, 0, 0, 0.87);
      vertical-align: inherit;
      font-weight: 500;
      text-transform: none;
      background: rgb(245, 245, 245);
      padding: 0.75em 0;
      border-bottom: 1px solid rgba(34, 36, 38, 0.1);
      border-left: none;
      &.is-left{
        text-align: left;
      }
      &.is-right{
        text-align: right;
      }
      .cell {
        white-space: normal;
      }
    }
  }
  .el-table__body{
    font-size: 12px;
    width: 100%;
    box-shadow: none;
    text-align: left;
    color: rgba(0, 0, 0, 0.75);
    border-collapse: separate;
    background: rgb(255, 255, 255);
    //margin: 0 0px 1em;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(233, 233, 233);
    border-top: 0;
    border-image: initial;
    border-radius: 0 0 0.285714rem 0.285714rem ;
    border-spacing: 0px;

    tr{
      &:focus,
      &:hover{
        outline: 0;
        background-color: #ecf5ff;
      }
      &:last-child{
        td{
          border-bottom:none;
        }
      }
      td{
        border-bottom:1px solid rgb(233,233,233);
        i{
          font-size: 20px;
          margin: 0 3px;
          vertical-align: text-top;
          line-height: 1;
        }
        .svg-icon{
          font-size: 20px;
          margin: 0 3px;
          vertical-align: text-top;
          line-height: 1;
        }
      }
    }
    .drop{
      i{
        font-size: 20px;
      }
    }
  }
  .cell{
    white-space:nowrap;
    .pointer{
      display: inline-block;
      padding: 0 10px;
      color: $menuActiveText;
      cursor: pointer;
    }
  }
  .date-cell .cell{
    white-space: normal;
  }
  .el-table__expand-icon>.el-icon {
    margin: -10px 0 0 -10px !important;
  }
  .el-table__expanded-cell {
    .el-form-item__label {
      font-weight: bold;
      display: block;
      color: #000;
    }
  }
}
.el-table-column--selection .cell{
  padding-left: 10px;
  padding-right: 10px;
}
.el-tooltip__popper.is-dark{
  line-height: 2;
  max-width: 800px;
  &>div.tooltip-content{
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto ;
    &::-webkit-scrollbar {
      width: 6px;
    }
    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
// dialog

.pics-dialog {
  margin: 0 auto !important;
  .el-dialog__header {
    padding: 0;
  }
  .el-dialog__headerbtn {
    z-index: 2050;
    background-color: rgba(0,0,0,1);
    border-radius: 50%;
  }
  .el-dialog__body {
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100vh;
    background: transparent;
  }
  .img-box{
    width: 100%;
    height: 100%;
  }
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .video-panel{
    width: 50%;
    height: calc(30vw);
    background-color: #000;
  }
  .XC-video {
    width: 100%;
  }
}
.XC-video-img {
  i {
    border: 2px solid #fff;
    border-radius: 50%;

    position: absolute;
    top: 40%;
    left: 45%;
    color: #fff;
    cursor: pointer;
  }
}
.pic-item {
  cursor: pointer;
  width: 130px;
  margin-top: 7px;
}

//tab标签的样式
.el-tabs__content {
  overflow: inherit;
}

// popover
// .el-popover {
//   text-align: center;
//   border: none;
//   background: #303133;
//   color: #FFF;
//   font-size: 12px;
//   padding: 10px;
//   .popper__arrow::after{
//     border-top-color: #303133 !important;
//   }
// }

// 联级选择器
.el-cascader-menus {
  .el-cascader-menu {
    max-height: 204px;
    height: auto;
  }
}
// 当联级面板禁用时，选中的选项仍旧高亮展示
.el-cascader-node.in-active-path,
.el-cascader-node.is-selectable.in-checked-path,
.el-cascader-node.is-active{
  color: #1890ff;
  font-weight: bold;
}

// 上传
.el-upload-list {
  display: inline-block;
  height: 27px;
  margin-left: 10px;
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content{
  background-color: $menuActiveText;
  color: #fff;
}

.el-popper[x-placement^="bottom"]{
  &.select-popper {
    z-index: 2000 !important;
  }
}
.i-tree{
  .el-tree-node{
    .el-tree-node__content{
      height: 40px;
    }
    //.el-tree-node__content:hover{
    //  background-color: #fff;
    //  color: #4D6DF4;
    //}
  }
  //.el-tree-node:focus>.el-tree-node__content{
  //  background-color: #fff;
  //  color: #4D6DF4;
  //}
}
